home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000013_icon-group-sender _Sat Jan 13 14:58:33 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
1KB
Received: by cheltenham.cs.arizona.edu; Tue, 16 Jan 1996 08:54:03 MST
From: "Hamish Lawson" <H.Lawson@tees.ac.uk>
Organization: University of Teesside (SCM)
To: icon-group@cs.arizona.edu
Date: Sat, 13 Jan 1996 14:58:33 GMT0BST
Subject: Initialising tables
Reply-To: H.Lawson@tees.ac.uk
Priority: normal
X-Mailer: Pegasus Mail/Windows (v1.22)
Message-Id: <4B78DE79AC@scm_arkengarthdale.tees.ac.uk>
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
Is there an quick way to initialise tables, along the lines of the
list assignment below?
aList := ["this","list","is","a","list"]
I've cooked up the following, but is there a more concise way?
aTable := table()
every entry := ![["bob",2],["sue",5],["fred",12],["mary",9]] do
aTable[entry[1]] := entry[2]
| Hamish Lawson, School of Computing and Mathematics,
| University of Teesside, Middlesbrough, Cleveland, UK, TS1 3BA
| Tel: +44 1642 218121 x3611 Fax: +44 1642 342604
| E-mail: H.Lawson@tees.ac.uk